// fstream::is_open
#include <iostream>
#include <fstream>
using namespace std;

int main () {

  fstream filestr;
  filestr.open ("test.txt");
 
    filestr << "File successfully open";
    filestr.close();

  return 0;
}
